package com.oocl.euc.core.maintenance.model;

import com.oocl.euc.audit.AuditEntity;

import javax.persistence.*;

@Entity
@Table(name="PCRS_TEAM_ENDORSERS")
@SequenceGenerator(name="SEQUENCE_GENERATOR", sequenceName="TEAM_ENDORSER_SEQUENCE", allocationSize=1)
public class TeamEndorser extends AuditEntity {
	@Column(name="ENDORSER")
	private String endorser;

	@OneToOne(cascade = { CascadeType.REFRESH }, fetch = FetchType.EAGER)
	@JoinColumn(name = "STAFF_ID", referencedColumnName = "STAFF_ID")
	private Users users;
	@Transient
	private String displayName;

	@Transient
	private Boolean wasSelected;

	public String getEndorser() {
		return endorser;
	}

	public void setEndorser(String endorser) {
		this.endorser = endorser;
	}

	public Users getUsers() {
		return users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public Boolean getWasSelected() {
		return wasSelected;
	}

	public void setWasSelected(Boolean wasSelected) {
		this.wasSelected = wasSelected;
	}

}
